<script type="text/javascript" src="${base}/scripts/tool/pinyin.js"></script>
<script type="text/javascript" src="${base}/scripts/jhgl/bgfk_content.js"></script>

<form id="form_bgfk" action="" method="post">
    <input id="bgfk_id" name="bgfk.id" type="hidden" value="${(bgfk.id)!''}"/>
    <input name="bgfk.zt" type="hidden" value="${(bgfk.zt)!''}"/>
    <table style="width:100%" class="tb tab-t">
        <col width="20%"/>
        <col width="23%"/>
        <col width="22.5%"/>
        <col width="34.5%"/>
        <tr>
            <th style="color:#f45212;">单&nbsp;据&nbsp;&nbsp;号：</th>
            <td colspan="3"><input name="bgfk.bm" class="input-text-border-zero" readonly="readonly" type="text"
                                   style="width:493px;background-color:#F8F8FF;font-weight: bold"
                                   value="${(bgfk.bm)!''}"/>
            </td>
        </tr>
        <tr>
            <th style="color:#f45212;">付款类型：</th>
            <td>
                <label><input name="bgfk.sfklx" type="radio" value="1" checked="checked" required="true"
                              style="vertical-align: middle;"/>&nbsp;供应付款</label>
                <label><input name="bgfk.sfklx" type="radio" value="2" required="true"
                              <#if (bgfk.sfklx)?? && bgfk.sfklx==2>checked</#if> style="vertical-align: middle;"/>&nbsp;销售退款
                </label>
            </td>
            <th style="color:#f45212;"> 票据类型：</th>
            <td>
                <input idVal="bgfk_pjlx_id" name="bgfk.pjlx.id" class="input-text" type="text"
                       required="true" value="${(bgfk.pjlx.id)!''}"/>
            </td>
        </tr>
        <tr>
            <th style="color:#f45212;">
                <span id="bgfk_gys" style="display: block;">供&nbsp;应&nbsp;&nbsp;商：</span>
                <span id="bgfk_kh" style="display: none;">客户名称：</span>
            </th>
        <#--<td>-->
        <#--<input id="bgfk_gldw_id" name="bgfk.gldw.id" type="text" value="${(bgfk.gldw.id)!''}" class="easyui-combobox input-text"-->
        <#--required="true" style="width:523px;" data-options="valueField:'id',textField:'jc',panelHeight:'200'"/>-->
        <#--</td>-->
            <td>
                <input type="hidden" name="bgfk.gldw.id" class=" input-text" value="${(bgfk.gldw.id)!}"
                        >
                <input type="text" class=" input-text" value="${(bgfk.gldw.jc)!}"
                       readonly="readonly" style="width:523px;">
            </td>
        </tr>
        <tr>
            <th style="color:#f45212;">款项类型：</th>
            <td>
                <label><input name="bgfk.kxlx" type="radio" value="1" checked="checked" required="true"
                              style="vertical-align: middle;"/>&nbsp;预付款</label>
                <label><input name="bgfk.kxlx" type="radio" value="2" required="true"
                              <#if (bgfk.kxlx)?? && bgfk.kxlx==2>checked</#if> style="vertical-align: middle;"/>&nbsp;应付款
                </label>
            </td>
            <th style="color:#f45212;">内部付款：</th>
            <td>
                <label><input name="bgfkNbfk" type="radio" value="2" required="true"
                              style="vertical-align: middle;"/>&nbsp;是</label>
                <label><input name="bgfkNbfk" type="radio" value="1"
                              style="vertical-align: middle;" checked="checked"/>&nbsp;否 </label>
            </td>
        </tr>
        <tr>
            <th style="color:#f45212;">款项用途：</th>
            <td>
                <input idVal="bgfk_kxyt_id" name="bgfk.kxyt.id" class="input-text" type="text"
                       required="true" value="${(bgfk.kxyt.id)!'132'}"/>
            </td>
            <th>申报公司：</th>
            <td>
                <input id="bgfk_sbgs_id" type="hidden" name="bgfk.sbgs.id" class=" input-text"
                       value="${(bgfk.sbgs.id)!}"
                        >
                <input type="text" class=" input-text" value="${(bgfk.sbgs.jc)!} " readonly="readonly"
                        >
            </td>
        </tr>
        <tr>
            <th>申报部门：</th>
            <td>
                <input type="hidden" name="bgfk.sbbm.id" class=" input-text" value="${(bgfk.sbbm.id)!}"
                        >
                <input type="text" class=" input-text" value="${(bgfk.sbbm.jc)!}"
                       readonly="readonly">
            </td>
            <th>申&nbsp;报&nbsp;&nbsp;人：</th>
            <td>
                <input type="hidden" name="bgfk.sbr.id" class=" input-text" value="${(bgfk.sbr.id)!}"
                        >
                <input type="text" class=" input-text" value="${(bgfk.sbr.xm)!}"
                       readonly="readonly">
            </td>
        </tr>
        <tr>
            <th>付款金额：</th>
            <td><input type="text" name="bgfk.sfje" class="easyui-numberbox input-text"
                       required="true" data-options="precision:2,min:0,groupSeparator:','" value="${(bgfk.sfje)!}"/>
            <#--<input id="bgfk_sfje" name="bgfk.sfje" type="text"  class="easyui-numberbox input-text"-->
            <#--required="true"   data-options="precision:2,min:0" value="${(bgfk.sfje?string("0.00"))!''}"/></td>-->
                <th>付款时间：</th>
            <td>
                <input name="bgfk.dateCreated" type="text" class="easyui-datebox input-text"
                       required="true" value="${(bgfk.dateCreated?date)!''}"/>
            </td>
        </tr>
        <tr>
            <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
            <td>
                <input type="text" class=" input-text" value="${(bgfk.bz)!''}"
                        >
            </td>
        </tr>
    </table>
</form>

